package com.rabbitpre.material.interfaces.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 音频素材保存参数
 *
 * @author zhangren
 * @date 2022/11/14
 */
@ApiModel("音频素材保存参数")
public class MusicMaterialSaveParam {

    /**
     * 素材名
     */
    @ApiModelProperty("素材名")
    @NotNull(message = "素材名不能为空")
    private String name;

    /**
     * 素材url
     */
    @ApiModelProperty("素材相对路径")
    @NotNull(message = "素材相对路径不能为空")
    @Size(max = 128 , message = "素材相对路径不超过128字符")
    private String path;

    /**
     * 音频格式：mp3等
     */
    @ApiModelProperty("音频格式：mp3等")
    @NotNull(message = "素材名不能为空")
    private String type;

    /**
     * 音频大小，单位byte
     */
    @ApiModelProperty("音频大小，单位byte")
    @NotNull(message = "音频大小不能为空")
    private Integer size;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }
}
